package org.ewaf.framework.ibatis.type;

import java.sql.SQLException;

import com.ibatis.sqlmap.client.extensions.ParameterSetter;

public class WildcardTypeHanlderCallback extends FuzzyQueryTypeHandlerCallback {

	public void setParameter(ParameterSetter setter, Object parameter)
			throws SQLException {
		
		if (parameter == null) {
			setter.setString("%");
		} else {
			setter.setString("%" + escape(parameter) + "%");
		}
	}

}
